package com.ruoyi.clothing.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品对象 sys_goods
 * 
 * @author weh
 * @date 2024-01-18
 */
public class SysGoods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品id */
    private Integer id;

    /** 商品名 */
    @Excel(name = "商品名")
    private String goodsName;

    /** 商品图片 */
    @Excel(name = "商品图片")
    private String goodPicture;

    /** 商品材质 */
    @Excel(name = "商品材质")
    private String material;

    /** 商品颜色 */
    @Excel(name = "商品颜色")
    private String color;

    /** 商品价格 */
    @Excel(name = "商品价格")
    private BigDecimal price;

    /** 商品款式(用来关联款式表，关联款式表的id） */
    @Excel(name = "商品款式(用来关联款式表，关联款式表的id）")
    private Integer style;

    /** 是否爆款(0代表非爆款，1代表爆款） */
    @Excel(name = "是否爆款(0代表非爆款，1代表爆款）")
    private Integer isHot;

    /** 是否男女(0代表为女，1代表为男） */
    @Excel(name = "是否男女(0代表为女，1代表为男）")
    private Integer isMan;

    /** 商品款式类型（关联款式细节表的ID） */
    @Excel(name = "商品款式类型", readConverterExp = "关=联款式细节表的ID")
    private Integer styleDetail;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setGoodsName(String goodsName) 
    {
        this.goodsName = goodsName;
    }

    public String getGoodsName() 
    {
        return goodsName;
    }
    public void setGoodPicture(String goodPicture) 
    {
        this.goodPicture = goodPicture;
    }

    public String getGoodPicture() 
    {
        return goodPicture;
    }
    public void setMaterial(String material) 
    {
        this.material = material;
    }

    public String getMaterial() 
    {
        return material;
    }
    public void setColor(String color) 
    {
        this.color = color;
    }

    public String getColor() 
    {
        return color;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setStyle(Integer style) 
    {
        this.style = style;
    }

    public Integer getStyle() 
    {
        return style;
    }
    public void setIsHot(Integer isHot) 
    {
        this.isHot = isHot;
    }

    public Integer getIsHot() 
    {
        return isHot;
    }
    public void setIsMan(Integer isMan) 
    {
        this.isMan = isMan;
    }

    public Integer getIsMan() 
    {
        return isMan;
    }
    public void setStyleDetail(Integer styleDetail) 
    {
        this.styleDetail = styleDetail;
    }

    public Integer getStyleDetail() 
    {
        return styleDetail;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("goodsName", getGoodsName())
            .append("goodPicture", getGoodPicture())
            .append("material", getMaterial())
            .append("color", getColor())
            .append("price", getPrice())
            .append("style", getStyle())
            .append("isHot", getIsHot())
            .append("isMan", getIsMan())
            .append("styleDetail", getStyleDetail())
            .toString();
    }
}
